package cn.stylefeng.guns.modular.purchase.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:21
 * @version 1.0
 */
/**
    * 采购中心的采购单
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "purchase_order")
public class PurchaseOrderEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 供应商ID
     */
    @TableField(value = "supplier_id")
    private Long supplierId;

    /**
     * 预计到货时间
     */
    @TableField(value = "expect_arrival_time")
    private Date expectArrivalTime;

    /**
     * 联系人
     */
    @TableField(value = "contactor")
    private String contactor;

    /**
     * 联系电话
     */
    @TableField(value = "contactor_phone_number")
    private String contactorPhoneNumber;

    /**
     * 联系邮箱
     */
    @TableField(value = "contactor_email")
    private String contactorEmail;

    /**
     * 说明备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 采购员
     */
    @TableField(value = "purchaser")
    private String purchaser;

    /**
     * 采购单状态，1：编辑中，2：待审核，3：已审核，4：待入库，5：待结算，6：已完成
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_SUPPLIER_ID = "supplier_id";

    public static final String COL_EXPECT_ARRIVAL_TIME = "expect_arrival_time";

    public static final String COL_CONTACTOR = "contactor";

    public static final String COL_CONTACTOR_PHONE_NUMBER = "contactor_phone_number";

    public static final String COL_CONTACTOR_EMAIL = "contactor_email";

    public static final String COL_REMARK = "remark";

    public static final String COL_PURCHASER = "purchaser";

    public static final String COL_STATUS = "status";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}